#!/usr/bin/node

const user={
  name:'王定',
  age:19,
  qq:'123456'
};
const log=console.log;
log('name:%s',user.name);//字符串
log('age:%d',user.age);//整数
log('user:%j',user);//JSON数据

log('qq: %s',user.qq);
log('qq:',user.qq);
log('qq: '+user.qq);
log(`qq: ${user.qq}`);
//标准错误流
console.error('Error:something wrong!');

